package com.zlzvip.android.common.image;

import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

/**
 * Created by Zoi.
 * E-mail：KyluZoi@gmail.com
 * 2016/9/8
 */
public class IML {


    public static void load(Context context, ImageView view, String url) {
        if (TextUtils.isEmpty(url)) {
            Log.d("IML", "load url 为空");
            return;
        }
        Glide.with(context).load(url).centerCrop().into(view);
    }
    public static void loadDetail(Context context, ImageView view, String url) {
        if (TextUtils.isEmpty(url)) {
            Log.d("IML", "load url 为空");
            return;
        }
        Glide.with(context).load(url).fitCenter().into(view);
    }

}
